package com.yuetong.quotation.mapper;

import java.util.List;
import com.yuetong.quotation.domain.YtQuotationInfo;
import com.yuetong.quotation.domain.YtQuotationDetail;

/**
 * 报价Mapper接口
 * 
 * @author  卓晓君
 * @date 2025-02-11
 */
public interface YtQuotationInfoMapper 
{
    /**
     * 查询报价
     * 
     * @param quotationId 报价主键
     * @return 报价
     */
    public YtQuotationInfo selectYtQuotationInfoByQuotationId(Long quotationId);

    /**
     * 查询报价列表
     * 
     * @param ytQuotationInfo 报价
     * @return 报价集合
     */
    public List<YtQuotationInfo> selectYtQuotationInfoList(YtQuotationInfo ytQuotationInfo);

    /**
     * 新增报价
     * 
     * @param ytQuotationInfo 报价
     * @return 结果
     */
    public int insertYtQuotationInfo(YtQuotationInfo ytQuotationInfo);

    /**
     * 修改报价
     * 
     * @param ytQuotationInfo 报价
     * @return 结果
     */
    public int updateYtQuotationInfo(YtQuotationInfo ytQuotationInfo);

    /**
     * 删除报价
     * 
     * @param quotationId 报价主键
     * @return 结果
     */
    public int deleteYtQuotationInfoByQuotationId(Long quotationId);

    /**
     * 批量删除报价
     * 
     * @param quotationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYtQuotationInfoByQuotationIds(Long[] quotationIds);

    /**
     * 批量删除报价详情明细
     * 
     * @param quotationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYtQuotationDetailByQuotationIds(Long[] quotationIds);
    
    /**
     * 批量新增报价详情明细
     * 
     * @param ytQuotationDetailList 报价详情明细列表
     * @return 结果
     */
    public int batchYtQuotationDetail(List<YtQuotationDetail> ytQuotationDetailList);
    

    /**
     * 通过报价主键删除报价详情明细信息
     * 
     * @param quotationId 报价ID
     * @return 结果
     */
    public int deleteYtQuotationDetailByQuotationId(Long quotationId);
}
